const profiles = 'uat';

const configListObj = {
  // 测试uat环境
  uat: {
    server_add: 'https://xcx.jyx88888.com/',
    server_port: 'api/v1',
    server_img_http:'https://xcx.jyx88888.com',
    corpid:'',//测试uat环境企业微信corpid
    corpsecret:'', //秘钥
    key : 'YR2BZ-FG5LJ-FF5F7-F4OXL-5HFKK-CVFEQ',//小程序插件 地图key
    appid: 'wx49e960151a1b22a1',// 小程序id
    server_vue:''// 订单打印调用前台vue的网址
  },
  //  正式环境
  pro: {
    server_add: 'https://scrm.hegii.com',
    server_port: '443/api',
    server_img_http: 'https://hegii-scrm-prod.oss-cn-shenzhen.aliyuncs.com/',
    //server_hg_img_http: 'https://hegii-hap.oss-cn-shenzhen.aliyuncs.com/',
    server_hg_img_http:'',
    corpid: 'ww2bc8a1bda0628c66', //企业微信corpid
    corpsecret: 'QjtmMud1QfHoGpcCkY-2h3p6aUfExnqkYFTMwn2Xu38', //秘钥
    key : 'B64BZ-ID5LI-VE3GR-5C2PD-MN7RV-X3F5U', //小程序插件 地图key
    appid: 'wx9526c817572b66df',// 小程序id
    server_vue:  'https://scrm.hegii.com/'// 订单打印调用前台vue的网址
  }
} 

let config = getConfig()

function getConfig() {
  return {
    server_add: configListObj[profiles].server_add,
    server_port: configListObj[profiles].server_port,
    server_img_http: configListObj[profiles].server_img_http,
    server_hg_img_http: configListObj[profiles].server_hg_img_http,
    corpid: configListObj[profiles].corpid,
    corpsecret: configListObj[profiles].corpsecret,
    key:configListObj[profiles].key,
    server_vue:configListObj[profiles].server_vue,
    appid:configListObj[profiles].appid,
  }
}

module.exports = config